package com.bwie.service;

import com.bwie.bean.House;
import com.bwie.bean.User;
import com.bwie.dao.HouseDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class HouseServiceImpl implements HouseService {

    @Autowired
    HouseDao houseDao;

    @Override
    public List<House> list(Map map) {
        return houseDao.list(map);
    }

    @Override
    public User login(User user) {
        return houseDao.login(user);
    }
}
